<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>南开大学软件工程课程后台管理系统</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="./css/style.css">

	</head>

	<body>
		<div class="all">
			<div class="main">
				<h3>
					添加题目
				</h3>
				<s:form action="exercise">
					<s:textfield name="question" label="题目 " size="50"></s:textfield>
					<s:textfield name="option1" label="选项1 " size="50"></s:textfield>
					<s:textfield name="option2" label="选项2 " size="50"></s:textfield>
					<s:textfield name="option3" label="选项3 " size="50"></s:textfield>
					<s:textfield name="option4" label="选项4 " size="50"></s:textfield>
					<tr>
						<td class="tdLabel">
							<label class="label">
								答案 :
							</label>
						</td>
						<td>
							<s:radio theme="simple" name="answer"
								list="#{1:'选项1',2:'选项2',3:'选项3',4:'选项4'}" listKey="key"
								listValue="value"></s:radio>
						</td>
					</tr>
					<s:submit value="提交题目" method="addExercises"></s:submit>
				</s:form>
			</div>
		</div>
	</body>
</html>
